package com.jsmile.cloud.promotioncenter.api.exception;

import com.jsmile.cloud.promotioncenter.api.enums.PromotionCodeEnum;
import com.jsmile.mall.api.enums.JSmileCodeEnum;
import com.jsmile.mall.api.exception.BaseException;

public class PromotionException extends BaseException {

    public PromotionException(Integer errCode, String errMsg, Throwable e) {
        super(errCode, errMsg, e);
    }

    public PromotionException(PromotionCodeEnum k, Throwable e) {
        super(k.getResCode(), k.getResMsg(), e);
    }

    public PromotionException(PromotionCodeEnum k) {
        super(k.getResCode(), k.getResMsg(), null);
    }

    public PromotionException(JSmileCodeEnum k) {
        super(k.getResCode(), k.getResMsg(), (Throwable)null);
    }

    public PromotionException(String errMsg, Throwable e) {
        super(errMsg, e);
    }

    public PromotionException(String errMsg) {
        super(errMsg, null);
    }
}
